import {Navigation} from 'react-native-navigation';
import Question from "./tabs/Question";
import Me from "./tabs/Me";
import QuestionDetail from "./QuestionDetail";
import QuestionTopNav from "./customViews/QuestionTopNav";
import QuestionListTopNav from "./customViews/QuestionListTopNav";
import Login from "./Login";
import Signup from "./Signup";
import Toolkit from "./Toolkit";
import Discussion from "./Discussion";

export function registerScreens(store,Provider) {
    Navigation.registerComponent('interview.question', () => Question,store,Provider);
    Navigation.registerComponent('interview.me',()=>Me,store,Provider);

    Navigation.registerComponent('interview.question.listTopNav',()=>QuestionListTopNav);

    // ========题目========
    Navigation.registerComponent('interview.question.detail',()=>QuestionDetail);
    Navigation.registerComponent('interview.question.discussion',()=>Discussion);//讨论
    Navigation.registerComponent('interview.questionTopNav',()=>QuestionTopNav);

    //=========个人========
    Navigation.registerComponent('interview.login',()=>Login);
    Navigation.registerComponent('interview.signup',()=>Signup);


    //==========工具========
    Navigation.registerComponent('interview.toolkit',()=>Toolkit);

}

